<%@page contentType="text/html; charset=utf-8" %>
<%
    Exception ex = (Exception) request.getAttribute("SQLException");
    StackTraceElement element = ex.getStackTrace()[0];
%>
<html>
<head>
    <title>出错啦!</title>
</head>
<body>
<div id="wrapper" style="padding-bottom:20px">
    <div id="main" style="padding:80px 0">
        <div id="msg" style="margin:0 auto;padding:5px 0 0 80px;width:650px;display:">
            <input type="hidden" name="action" value="do">
            <table style="width: 80%">
                <tr>
                    <td style="padding-left:20px;" colspan="2">发生系统错误，请联系管理员处理</td>
                </tr>
                <tr height="10px"></tr>
                <tr>
                    <td style="padding-left:20px;text-align:right;width: 110px;">异常类型：</td>
                    <td><%out.println(ex);%></td>
                </tr>
                <tr>
                    <td style="padding-left:20px;text-align:right;width: 60px;">出错文件：</td>
                    <td><%out.println(element.getFileName());%></td>
                </tr>
                <tr>
                    <td style="padding-left:20px;text-align:right;width: 60px;">出错方法：</td>
                    <td><%out.println(element.getMethodName());%></td>
                </tr>
                <tr>
                    <td style="padding-left:20px;text-align:right;width: 60px;">出错行数：</td>
                    <td><%out.println(element.getLineNumber());%></td>
                </tr>
                <tr height="10px"></tr>
                <tr height="10px"></tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>